package com.zygh.questionnairesurvey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel(value = "UserInfo对象", description = "")
public class UserInfo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "所属部门")
    private Integer deptId;

    @ApiModelProperty(value = "权限id")
    private Integer roleId;


    @ApiModelProperty(value = "状态（0 正常，1 删除）", example = "0")
    private Integer status;

    @ApiModelProperty(value = "密码状态（0：未修改  1：已修改）", example = "0")
    private Integer passStatus;

    @ApiModelProperty(value = "是否为领导班子（0：民警  1：领导班子   3：工勤人员）", example = "0")
    private Integer termStatus;

    @ApiModelProperty(value = "民警  1：领导班子   3：工勤人员")
    @TableField(exist = false)
    private String termName;


    @ApiModelProperty(value = "是否为管理员(0:否  1：是)")
    private Boolean isSuperadmin;

    @ApiModelProperty(value = "是否核对个人信息（0：否  1：是）", example = "0")
    private Integer checkStatus;

    @ApiModelProperty(value = "创建日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;


    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String deptName;

    @ApiModelProperty(value = "上级部门名称")
    @TableField(exist = false)
    private String pName;


}